package com.app.controller;

import com.app.model.response.RetStatus;
import com.app.service.CommonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Lichaojie on 2017/3/13. It's a beautiful day.
 */
@RequestMapping(value = "/")
@RestController
public class CommonController {

    @Autowired
    private CommonService commonService;

    @RequestMapping(value = "system/getVersionInfo")
    public RetStatus getVersionInfo(){
        return commonService.getVersionInfo();
    }

    @RequestMapping(value = "system/getAgreement")
    public RetStatus getAgreement(){
        return commonService.getAgreement();
    }

    @RequestMapping(value = "system/feedback")
    public RetStatus feedback(@RequestBody String parameter){
        return commonService.feedback(parameter);
    }


}
